<h1>Listing article_histories</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Body</th>
    <th>Username</th>
    <th>Ip address</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @article_histories.each do |article_history| %>
  <tr>
    <td><%= article_history.title %></td>
    <td><%= article_history.body %></td>
    <td><%= article_history.username %></td>
    <td><%= article_history.ip_address %></td>
    <td><%= link_to 'Show', article_history %></td>
    <td><%= link_to 'Edit', edit_article_history_path(article_history) %></td>
    <td><%= link_to 'Destroy', article_history, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Article history', new_article_history_path %>
